/**
 * Created by koudaiwang on 2017/6/20.
 */


// 初始化系统
var Install = require('./install');
var ICOInfo = require('./icoinfo');
var News = require('./news');
var Admin = require('./admin');
var NewsType = require('./newstype');
var Users = require('./users');
var CoinsDes = require('./coinDes');
var Tradingplatform = require('./tradingplatform');

module.exports = function(app) {
    ICOInfo(app);
    Install(app);
    News(app);
    Admin(app);
    NewsType(app);
    Users(app);
    CoinsDes(app);
    Tradingplatform(app);

    // ----------------- 操作失败
    app.use(function (req, res) {
        if (!res.headersSent) {
            res.render('404');
        }
    });
}